
package com.swe622.rmi.client.gui;

/**
 *
 * @author Melanie
 */
import java.util.ArrayList;
import java.util.List;
import javax.swing.*;
import javax.swing.event.*;

public class GuiObjectListModel implements ListModel {

    private List<GuiDataObject> collection;

  public GuiObjectListModel(List<GuiDataObject> collection) {
    this.collection = collection;
  }

  public Object getElementAt(int index) {
    return(collection.get(index));
  }

  public int getSize() {
    return(collection.size());
  }

  public void addListDataListener(ListDataListener l) {}

  public void removeListDataListener(ListDataListener l) {}
}



